package com.zhangzhan.gulimallorder.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.tos.SeckillCreateTo;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallorder.entity.OrderEntity;
import com.zhangzhan.gulimallorder.vos.PayAsyncVo;

import java.util.Map;

/**
 * 订单
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 18:23:43
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderEntity getByOrderSn(String orderSn);

    String alipay(String orderSn) throws AlipayApiException;

    String alipayed(PayAsyncVo payAsyncVo);

    String seckillCreate(SeckillCreateTo seckillCreateTo);

}

